package com.hc.dao;

import com.hc.entity.RoleAuth;
import java.util.List;

public interface RoleAuthDao {

    int insertRoleAuth(RoleAuth roleAuth);

    int insertRoleAuthSelective(RoleAuth roleAuth);

	int batchInsertRoleAuth(List<RoleAuth> roleAuthList);

    int deleteRoleAuthById(Integer id);

	int deleteRoleAuthByCondition(RoleAuth roleAuth);

	int batchDeleteRoleAuthByIdList(List<Integer> idList);

    int updateRoleAuth(RoleAuth roleAuth);

    int updateRoleAuthSelective(RoleAuth roleAuth);

    long selectCount();
    
    long selectCountByCondition(RoleAuth roleAuth);

    RoleAuth selectRoleAuthById(Integer id);

    List<RoleAuth> selectAllRoleAuth();

	List<RoleAuth> selectRoleAuthByCondition(RoleAuth roleAuth);

    //////////////////////////// 外键相关 /////////////////////////////////////
    List<RoleAuth> selectRoleAuthByRole(Integer role);

    //////////////////////////// 外键相关 /////////////////////////////////////
    List<RoleAuth> selectRoleAuthByAuth(Integer auth);

}